package $${Obj.PackageName}$$.service;

import java.util.List;
import java.util.Map;
import com.inspur.system.repository.Page;
import $${Obj.PackageName}$$.model.$${Obj.ClassNameFirstUpper}$$;

public interface I$${Obj.ClassNameFirstUpper}$$Service {
	
	public $${Obj.ClassNameFirstUpper}$$ findOne(long id);
	
	public List<$${Obj.ClassNameFirstUpper}$$> findAll();
	
	public List<$${Obj.ClassNameFirstUpper}$$> findBy(Map<String, String> parameters);
	
	public Page<$${Obj.ClassNameFirstUpper}$$> findPageByCondition(
			Page<$${Obj.ClassNameFirstUpper}$$> page, Map<String, String> conditions,
			Map<String, String> orders) ;

	public String exportByCondition(String filetype,
			Map<String, String> conditions);
	
	##{SQL
$$<(ObjSql.SqlType=insert)
	public void create($${Obj.ClassNameFirstUpper}$$ $${Obj.ClassNameFirstLower}$$);	
	>$$
$$<(ObjSql.SqlType=update)
	public void update($${Obj.ClassNameFirstUpper}$$ $${Obj.ClassNameFirstLower}$$);
	>$$
$$<(ObjSql.SqlType=delete)
	public void delete(Long id);
	>$$
}##
}